//
import { createStore,applyMiddleware } from "redux";
import thunk from 'redux-thunk'

import reducer from './reducer'

// 安装redux-devtools-extension的可视化工具。
import { composeWithDevTools } from 'redux-devtools-extension'

export default createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))